package com;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;

/**
 * @Author Ldj
 * @Date 2018/3/19 17:41
 * @Description 数据处理
 */
public class MainVerticle extends AbstractVerticle {

    @Override
    public void start() throws Exception {
        VertxOptions vertxOptions = new VertxOptions();
        vertxOptions.setWorkerPoolSize(100).setMaxWorkerExecuteTime(Long.MAX_VALUE);
        Vertx vertx = Vertx.vertx(vertxOptions);
        vertx.deployVerticle(ApiVerticle.class.getName());
    }
}
